import jieba

txt = open("沉默的羔羊.txt", "r", encoding="utf-8").read()
words = jieba.lcut(txt)
counts = {}
for word in words:
    if len(word) == 1:
        continue
    else:
        counts[word] = counts.get(word, 0) + 1
maxc = 0
maxword = ""
for k in counts:
    if counts[k] > maxc:
        maxc = counts[k]
        maxword = k
    elif counts[k] == maxc and k > maxword:
        maxword = k
print(maxword)